package com.summer.user.center.config;

import com.github.pagehelper.PageHelper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Properties;

/**
 * @author likun
 * 2018/7/6 16:01
 **/
@Configuration
public class PageHelperConfiguration {
    /*@Bean
    public PageHelper pageHelper(){
        PageHelper pageHelper = new PageHelper();
        Properties properties = new Properties();
        properties.setProperty("offsetAsPageNum","true");
        properties.setProperty("rowBoundsWithCount","true");
        properties.setProperty("reasonable","true");
        properties.setProperty("pageNum","pageNumKey");
        properties.setProperty("pageSize","pageSizeKey");

        pageHelper.setProperties(properties);
        return pageHelper;
    }*/
}
